FIND_PACKAGE(Qt5 REQUIRED Core Widgets Gui OpenGL)
#FIND_PACKAGE(OpenCV REQUIRED)
#INCLUDE(${QT_USE_FILE})
SET(SOURCES main.cc)
QT5_ADD_RESOURCES(SOURCES calibration.qrc)
QT5_WRAP_CPP(SOURCES main.h)
ADD_EXECUTABLE(qt-calibration ${SOURCES})
TARGET_LINK_LIBRARIES(qt-calibration
                      PUBLIC
		      Qt5::Core
                      Qt5::Widgets
                      Qt5::Gui
                      Qt5::OpenGL
                      ${QT_LIBRARIES}
                      ${FFMPEG_LIBRARIES}
                      opencv_highgui
                      opencv_imgproc
                      opencv_core
                      opencv_calib3d
		      pthread
                      z
                      X11
                      png
                      jpeg
		      X11
                      z
                      lzma
                      vdpau
                      swresample)
LIBMV_INSTALL_EXE(qt-calibration)
